package com.liuyanzhao.blog.entity.custom;

import com.liuyanzhao.blog.entity.Comment;


public class CommentCustom extends Comment {
    //评论者的头像
    private String commentAuthorAvatar;

    public String getCommentAuthorAvatar() {
        return commentAuthorAvatar;
    }

    public void setCommentAuthorAvatar(String commentAuthorAvatar) {
        this.commentAuthorAvatar = commentAuthorAvatar;
    }

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((commentAuthorAvatar == null) ? 0 : commentAuthorAvatar.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		CommentCustom other = (CommentCustom) obj;
		if (commentAuthorAvatar == null) {
			if (other.commentAuthorAvatar != null)
				return false;
		} else if (!commentAuthorAvatar.equals(other.commentAuthorAvatar))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "CommentCustom [commentAuthorAvatar=" + commentAuthorAvatar + "]";
	}
    
    
    
}
